﻿using Newtonsoft.Json;

namespace Project.Core.Config.Config.Jwt {
    public class JwtConfigInfo {
        /// <summary>
        /// 令牌密码
        /// a secret that needs to be at least 16 characters long
        /// </summary>
        public string SigningKey { get; set; }

        /// <summary>
        /// 过期时间(分钟)
        /// </summary>
        public int Expires { get; set; }

        /// <summary>
        /// 是否校验过期时间
        /// </summary>
        public bool ValidateLifetime { get; set; }

        public override string ToString() {
            return JsonConvert.SerializeObject(this);
        }
    }
}
